﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;

namespace Repository.Core.Models.VO
{
    [JsonObject]
    public class PublishVo
    {
        [Key]
        [Display(Name = "名称", ShortName = "名称")]
        [JsonProperty("name")]
        [Column("name")]
        public string Name { get; set; }

        [Display(Name = "发布时间", ShortName = "发布时间")]
        [JsonProperty("publishTime")]
        [Column("publishTime")]
        public DateTime PublishTime { get; set; }

        [JsonProperty("authorId")]
        [Column("authorId")]
        public string AuthorId { get; set; }

        [Display(Name = "版本提交人", ShortName = "版本提交人")]
        [JsonProperty("authorName")]
        [Column("authorName")]
        public string AuthorName { get; set; }

        [JsonProperty("publisherId")]
        [Column("publisherId")]
        public string PublisherId { get; set; }

        [Display(Name = "发布人", ShortName = "发布人")]
        [JsonProperty("publisherName")]
        [Column("publisherName")]
        public string PublisherName { get; set; }

        [Display(Name = "版本号", ShortName = "版本号")]
        [JsonProperty("versionId")]
        [Column("versionId")]
        public long VersionId { get; set; }

        [Display(Name = "备注", ShortName = "备注")]
        [JsonProperty("comment")]
        [Column("comment")]
        public string Comment { get; set; }
        public object Content { get; set; }
    }
}
